@import '../../style/color.scss';
@import '../../style/font.scss';

.mask {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.dialog {
  position: fixed;
  z-index: 5000;
  width: 560px;
  top: 44%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-color: #FFFFFF;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
}

.dialog-title {
  padding: 40px 0 21px 0;
  @include font-dpr(32px);
  font-weight: bold;
  color: $title-text-color;
}

.dialog-content {
  color: $dialog-description-color;
  padding: 0 40px 31px;
  @include font-dpr(32px);
  text-align: left;
  word-wrap: break-word;
  word-break: break-all;
  user-select: text;
}

.dialog-textarea-content {
  &:first-child {
    padding: 1.7em 20px 1.7em;
    color: #353535;
  }

  .response-input {
    border: 1px solid $dialog-line-color;
    @include font-dpr(32px);
    font-color: #333;
    width: 100%;
    border-radius: 0.133333rem;
    resize: none;
  }
}

.dialog-btn-wrap {
  position: relative;
  @include font-dpr(18px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 90px;
  line-height: 90px;

  &:after {
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 1px;
    border-top: 1px solid $dialog-line-color;
    color: #d5d5d6;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: scaleY(.5);
    transform: scaleY(.5);
  }

  .dialog-btn {
    display: block;
    -webkit-box-flex: 1;
    -ms-flex: 1;
        flex: 1;
    color: $dialog-action-text-color;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    position: relative;
    font-family: "PingFang SC Medium";
    @include font-dpr(30px);

    /*
    &:not(:first-child):after {
      content: " ";
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      height: 200%;
      border-left: 1px solid $dialog-line-color;
      color: #d5d5d6;
      -webkit-transform-origin: 0 0;
      transform-origin: 0 0;
      -webkit-transform: scaleY(.5);
      transform: scaleY(.5);
    }
    */

    &:active {
      background-color: $normal-hover-color;
    }
  }
}
